package org.example.demo3.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.example.demo3.enums.ProductConditionEnum;
import org.example.demo3.enums.ProductTypeEnum;

import java.util.List;

@Data
public class DraftDTO {
    //草稿id
    private  Integer draftId;
    //发布者id
    @NotNull(message = "发布者id不能为空")
    private Integer UserId;
    //商品标题
    private String title;
    //商品描述
    private String description;
    //价格
    private Double price;
    //商品成色
    private ProductConditionEnum condition;
    //商品图片url数组
    private List<String> images;
    //分类名称
    private String name;
    //分类类型
    private ProductTypeEnum type;

}